﻿using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace XinGuanERP.Models.Po.system
{
    public class SysRoleMenu : IEntity, IEntityTypeBuilder<SysRoleMenu>
    {
        public string? Id { get; set; }
        public string? RoleId { get; set; }
        public string? MenuId { get; set; }

        public void Configure(EntityTypeBuilder<SysRoleMenu> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
            entityBuilder.ToTable("SYS_ROLE_MENU");
            entityBuilder.HasKey(t => t.Id);
            entityBuilder.Property(t => t.Id).HasColumnName("ID");
            entityBuilder.Property(t => t.RoleId).HasColumnName("ROLEID");
            entityBuilder.Property(t => t.MenuId).HasColumnName("MENUID");
        }
    }
}
